#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from inary.actionsapi import inarytools
from inary.actionsapi import shelltools as tools
from inary.actionsapi import get

def install():
    tools.system("install -dm755 '{}/etc/pam.d'".format(get.installDIR()))
    for src in ["system-auth", "system-local-login", "system-login",
        "system-remote-login","system-services", "other"]:
        tools.system("install -m644 -t '{}/etc/pam.d' {}".format(get.installDIR(),src))

